package Tset1;

public class Faculty extends Employee{
        private String degree;
        private String level;

    public Faculty() {
        }
    public Faculty(String name, String address, String telPhone, String email, String office, double salary, String hireDate, String degree, String level) {
            super(name, address, telPhone, email, office, salary, hireDate);
            this.degree = degree;
            this.level = level;
        }

        public String setdegree() {
            return degree;
        }
        public void setdegree(String degree) {
            this.degree = degree;
        }
        public String getLevel() {
            return level;
        }
        public void setLevel(String level) {
            this.level = level;
        }

        public void Info(){
            System.out.println("姓名为:"+super.getName()+",地址为:"+super.getAddress()+",电话号码:+");
        }
}
